package com.bigtalk.pattern.structure.bridge2;

public class BridgeMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Brand b1 = new BrandNokia();
		b1.setFunction( new FunctionAddress() );
		b1.work();
		b1.setFunction( new FunctionGame() );
		b1.work();
		
		Brand b2 = new BrandApple();
		b2.setFunction( new FunctionAddress() );
		b2.work();
		b2.setFunction( new FunctionGame() );
		b2.work();
	}

}
